<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">

	<p:dialog id="khuVucDialogId" header="Chi tiết chi nhánh" widgetVar="khuVucDialog" showEffect="fade" hideEffect="fade"
		resizable="false" modal="true" appendToBody="true" maximizable="true">
		<h:form id="khuVucDetailFormId">
			<h:panelGrid id="khuVucPanelGridId" columns="2" cellpadding="4">
				<f:facet name="header">
					<p:messages autoUpdate="true" />
				</f:facet>

				<h:outputText value="Mã số*:" />
				<p:inputText value="#{khuVucView.editedEntity.code}" style="font-weight:bold" />

				<h:outputText value="Tên*:" />
				<p:inputText value="#{khuVucView.editedEntity.name}" style="font-weight:bold" />

				<h:outputText value="Chi nhánh*:" />
				<p:selectOneMenu value="#{khuVucView.selectedChiNhanhId}">
					<f:selectItem itemLabel="" itemValue="" />
					<f:selectItems var="cn" value="#{khuVucView.chiNhanhs}" itemLabel="#{cn.name}" itemValue="#{cn.id}" />
				</p:selectOneMenu>

				<f:facet name="footer">
					<p:commandButton icon="ui-icon-disk" value="Save" action="#{khuVucView.saveOrUpdate}" process="@form"
						update=":khuVucListFormId:khuVucDataTableId, @form" oncomplete="if (!args.validationFailed) khuVucDialog.hide()">
					</p:commandButton>
					<p:commandButton icon="ui-icon-cancel" value="Cancel" immediate="true" onclick="khuVucDialog.hide()" />
				</f:facet>
			</h:panelGrid>
		</h:form>
	</p:dialog>

</ui:composition>